 <script>
  var formsubmitted = <%#formsubmitted%>
  //If values are set then assign the values to the querybuilder hidden vareiables and close the window.
  //checking whether the page was submitted
 if(formsubmitted == "1")
	{
		alert('Submitted sucessfully.');
		window.opener.document.getElementsByTagName("input")["hiddenreportset"].value = <%#reportsetidentifier%>;
		window.opener.document.getElementsByTagName("input")["hiddenreportsetfromdynamicvalueset"].value = <%#hiddenreportsetfromdynamicvalueset%>;
		window.opener.document.getElementsByTagName("*")["querybuildervaluehidden"].value = "<%#querybuildervaluehidden%>";
		window.opener.document.getElementsByTagName("*")["displayquerybuildervaluehidden"].value = "<%#displayquerybuildervaluehidden%>";
		window.opener.document.forms[0].submit();
		window.close();
	}
	</script>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
	<TR>
		<TD class="N-TopLineBG"><IMG SRC="<%#VirtualDirectory%>/images/spacer.gif" WIDTH="10" HEIGHT="10"></TD>
    </TR>
    <TR>
		<TD >
			<TABLE cellspacing="1" cellpadding="5" border="0" width="100%">
				<TR Class="N-MainBGColor">
					<TD colspan="2" ><font class="heading2">Set Report Set Values</Font>
					</TD>
				</TR>
				<TR  CLASS="N-ListBGCOLORCOL1">
					<TD width="49%" >
						<span class="runtext1"><span> Report Set Name
						</span></span>
					</TD>
          			<TD width="51%" >
          				<%#reportsetname%>
					</TD>
				</TR>
				<%#ErrReportSetList%>
				<TR CLASS="N-MainBGColor">
					<TD width="49%">
						<font class="heading2">Name</font>
					</TD>
					<TD width="49%">
						<font class="heading2">Value</font>
					</TD>
				</TR>
				<!--Loaded from ReportSetSetDynamicValuesList.htm-->
				<%#dynamicvalueassign%>
				<TR Class="N-MainBGColor">
					<TD Colspan="2" align="center">
						<INPUT TYPE="submit" value="Submit" class="button2" name="btnSubmit" onclick="return submitform()">
					</TD>
				</TR>
			</TABLE>
		</TD>
	</TR>
	<TR>
		<TD class="N-TopLineBG"><IMG SRC="<%#VirtualDirectory%>/images/spacer.gif" WIDTH="10" HEIGHT="10"></TD>
    </TR>
</TABLE>
